package com.ogawa.projectcommon.dao

import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import com.ogawa.projectcommon.bean.Program8506E

@Dao
interface Program8506EDao {
    @Insert(onConflict = OnConflictStrategy.REPLACE)
     fun insertItems(items: List<Program8506E>)

    @Query("SELECT * FROM program8506E WHERE program=:func AND type=:type")
     fun getProgramByTypeAndModel(func: String, type: Int): Program8506E

    @Query("SELECT * FROM program8506E")
     fun program8506E(): List<Program8506E>
}